using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace AzureusWrapper
{
    public class ScrapeResult
    {
        private int seedCount;
        private int nonSeedCount;

        public int SeedCount
        {
            get
            {
                return this.seedCount;
            }
        }
        public int NonSeedCount
        {
            get
            {
                return this.nonSeedCount;
            }
        }

        public ScrapeResult(XmlNode serializedAnnounceResult)
        {
           this.seedCount = Int32.Parse(((XmlElement)serializedAnnounceResult).GetElementsByTagName("seed_count")[0].InnerText.Trim());
           this.nonSeedCount = Int32.Parse(((XmlElement)serializedAnnounceResult).GetElementsByTagName("non_seed_count")[0].InnerText.Trim());
        }
    }
}
